PrintDocument for WinForms | ComponentOne
C1.PrintDocument.6 Assembly / C1.C1Preview Namespace / C1PrintDocument Class / PrintDialog Method / PrintDialog(PrinterSettings,Int32[],Boolean) Method
The printer settings to use.
The list of selected page numbers. If this parameter is not null, selection option is enabled in the dialog.
Indicates whether to show print progress.

In This Topic
    PrintDialog(PrinterSettings,Int32[],Boolean) Method
    In This Topic
    Shows the standard print dialog, allowing the user to print the current document.
    Syntax
    'Declaration
     
    Public Overloads Function PrintDialog( _
       ByVal printerSettings As PrinterSettings, _
       ByVal selectedPageNumbers() As Integer, _
       ByVal showProgress As Boolean _
    ) As Boolean
    public bool PrintDialog( 
       PrinterSettings printerSettings,
       int[] selectedPageNumbers,
       bool showProgress
    )

    Parameters

    printerSettings
    The printer settings to use.
    selectedPageNumbers
    The list of selected page numbers. If this parameter is not null, selection option is enabled in the dialog.
    showProgress
    Indicates whether to show print progress.

    Return Value

    true if the document was printed, false otherwise.
    See Also